package cz.cvut.kadledav.paa.knapsack;

import cz.cvut.kadledav.paa.knapsack.tasks.FPTAS;

import java.io.IOException;
import java.util.Map;
import java.util.TreeMap;

/**
 * User: David Kadlecek
 * Date: 8.10.13
 */
public class RunDynamicAndOthers {

    public static void main(String[] args) throws IOException {
        int[] sizes = {4,10,15,20,22,25,27,30,32,35,37,40};
//        int[] sizes = {10};
        int times = 100;

//        Run.doFor(BiggestPriceTask.class, sizes, times);
//        Run.doFor(DynamicProgramingByCostTask.class, sizes, times,true);
        Map params = new TreeMap<>();
        params.put(FPTAS.MAX_RELATIVE_DEVIATION,0.6);
        Run.doFor(FPTAS.class, sizes, times, false, params);
//        Run.doFor(PriceWeightTask.class, sizes, times);
    }
}
